Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable the batch crop button when all images uncroppable #3944

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

andrew-nowak
Copy link
Member

@andrew-nowak andrew-nowak commented Nov 10, 2022

What does this change?

Previously, the "full frame crop" button on the search page was always enabled - even if the image couldn't be cropped! Now the button will be disabled if no images are croppable, or show a warning triangle if some images can't be cropped (like downloads)

image
image

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@andrew-nowak andrew-nowak requested a review from a team as a code owner November 10, 2022 10:34
@andrew-nowak andrew-nowak force-pushed the an/disable-crop-search-page branch from bbf652f to 627d9fb Compare November 10, 2022 16:02
@phillipbarron
Copy link
Contributor

phillipbarron commented Nov 11, 2022

The styling is a little inconsistent with the download button (in which the style seem a little broken too but I'm not sure that that is related to this change)

Screenshot 2022-11-11 at 10 44 50

There is missing padding to the left of the warning icon / right of the Download label. The warning icon in the crop could use some right padding

@andrew-nowak andrew-nowak force-pushed the an/disable-crop-search-page branch 3 times, most recently from 74244c4 to cae03b9 Compare November 21, 2022 17:03
@andrew-nowak andrew-nowak force-pushed the an/disable-crop-search-page branch from cae03b9 to 658dcb8 Compare January 22, 2025 15:52
@andrew-nowak andrew-nowak requested a review from a team as a code owner January 22, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants